﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>五菱宏光S3寻宝箱 赢大礼</title>
    <meta name="keywords" content="五菱宏光S3寻宝箱 赢大礼">
    <meta name="description" content="五菱宏光S3寻宝箱 赢大礼">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <link type="text/css" href="styles/style.css?v=20171212" rel="stylesheet">
    <meta name="x5-page-mode" content="app" />
    <meta name="imagemode" content="force" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta name="browsermode" content="application" />
    <script type="text/javascript" src="script/common.js?v=20171212"></script>
    <script type="text/javascript" src="script/jquery.min.js"></script>
    <script type="text/javascript" src="script/wxauth.js?v=20171212"></script>
    <script>
        wxApiAuth(function (openid) { if (openid) { llb_global.utils.setCookie("openid", openid); } });
    </script>
    <style>
        .mask-black {
            background: rgba(0, 0, 0, 1);
        }
    </style>
    <!--监测代码-->
    <script type="text/javascript" src="script/admaster.js"></script>
</head>

<body class="index">
    <a href="javascript:;" class="logo">
        <img src="images/logo.png?v=20171212">
    </a>

    <div class="share " id="J_mask_share" style="display: none;"></div>
    <div class="info-tips-bg success" style="display: none; z-index: 100;">
        <div class="suc"></div>
    </div>
    <a href="index.html" data-hmclog="310Wservicegarage-submitsuccess-gobackhome" class="f-btn f-btn-s success" style="display: none;z-index: 100;"></a>

    <div id="div_fail" style="display: none;">
        <div class="info-tips-bg">
            <div></div>
        </div>
        <a href="javascript:" class="f-btn f-btn-f"></a>
        <div class="pop-close" style="display: none;"></div>
    </div>

    <div class="form" id="J_form" style="display:block;">
        <div class="f-form">
            <div class="f-form-txt"><i></i><label for="">姓名</label><input type="text" maxlength="6" placeholder="" id="J_name"></div>
            <div class="f-form-txt"><i></i><label for="">电话</label><input type="number" oninput="if(value.length>11)value=value.slice(0,11)" placeholder="" id="J_phone"></div>

            <div class="f-sel-2">
                <div class="f-sel-2-2">
                    <div class="f-select-w">
                        <label for="">试驾车型</label>
                        <i></i>
                        <select class="f-select" id="J_carserial">
                            <option value="26" selected>宝骏310W</option>
                            <option value="15">五菱宏光S3</option>
                        </select>
                    </div>
                </div>
                <div class="f-sel-2-1">
                    <div class="f-select-w">
                        <label for="">省份</label>
                        <i></i>
                        <select class="f-select" id="J_province"></select>
                    </div>
                    <div class="f-select-w f-select-w-2">
                        <label for="">城市</label>
                        <i></i>
                        <select class="f-select" id="J_city"></select>
                    </div>
                </div>
                <div class="f-sel-2-2">
                    <div class="f-select-w">
                        <label for="">预约经销商</label>
                        <i></i>
                        <select class="f-select" id="J_dealer"></select>
                    </div>
                </div>
            </div>





            <div class="f-form-yzm f-form-yzm2">
                <div><label for="">短信验证码</label><i></i><input maxlength="6" type="text" placeholder="" id="J_yzm_txt"></div>
                <span id="btn_getcode" class="btn-yz">发送验证码</span>
            </div>


            <a href="javascript:" class="f-btn" id="btn-submit" data-hmclog="310Wservicegarage-leads-submit">确认提交</a>
            <a href="javascript:" id="state_success" style="display: none;" data-hmclog="310Wservicegarage-leads-submitsuccess" data-hmclogtpl="{(name)_(mobile)_(province)_(city)_(leadsID)}"></a>
            <a href="javascript:" id="state_fail" style="display: none;" data-hmclog="310Wservicegarage-leads-submitfail"></a>
        </div>
    </div>


    <script type="text/javascript" src="script/layer.js"></script>
    <script type="text/javascript" src="script/validate.js"></script>
    <script type="text/javascript" src="script/callback.js?v=20171212"></script>
    <script type="text/javascript" src="script/city.js?v=20171212"></script>
    <script type="text/javascript" src="script/drivecarorder.js?v=20171212"></script>

    <script>
        var layer = masker.init();
        $(function () {
            $.dcorder.init({
                callback: function (data) {
                    if (data && data.state == "success") {
                        $(".success").show();
                        $("#J_form").hide();
                        var tpl = $("#state_success").attr("data-hmclogtpl");

                        tpl = tpl.replace("(name)", decodeURI($.dcorder.__formData.Name))
                            .replace("(mobile)", $.dcorder.__formData.Phone)
                            .replace("(province)", decodeURI($.dcorder.__formData.ProvinceName))
                            .replace("(city)", decodeURI($.dcorder.__formData.CityName))
                            .replace("(leadsID)", data.data);
                        $("#state_success").attr("data-hmclogtpl", tpl).click();

                    } else {
                        masker.show("div_fail");
                        $("#J_form").hide();
                        alert(data.message);
                        $("#state_fail").click();
                    }
                }
            });
        });
    </script>
    <script type="text/javascript" src="http://static.weixinhost.com/private/wechat-config/0.3.0/wechat-config.js"></script>

    <script type="text/javascript" src="script/appshare.js?v=20171215"></script>
</body>
</html>
